package com.annotation.entities;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Cat implements InitializingBean,DisposableBean {
    public Cat() {
        super();
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("Cat...destroy");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Cat...afterPropertiesSet");
    }
}
